import javax.lang.model.element.NestingKind;
import java.util.Scanner;

public class Teacher {
    private String name;
    private String courseTeach;
    private String phone;
    private String position;
    private char gender;
    String getName() {
        return this.name;
    }
    String getCourseTeach() {
        return this.courseTeach;
    }
    String getPhone() {
        return this.phone;
    }
    String getPosition() {
        return position;
    }
    char getGender() {
        return gender;
    }
    void teach(){
        System.out.println("教师"+this.name+"开始上课");
    }
    Teacher(boolean flag){
        System.out.println("请输入教师的信息：");
    }
    Teacher(String name,String courseTeach){
        this.name=name;
        this.courseTeach=courseTeach;
    }

    Teacher(){
        Scanner reader = new Scanner(System.in);
        System.out.println("请输入教师姓名，回车结束输入");
        this.name=reader.next();
        System.out.println("请输入教授科目，回车结束输入");
        this.courseTeach=reader.next();
        System.out.println("请输入教师电话，回车结束输入");
        this.phone=reader.next();
        System.out.println("请输入教师职务，回车结束输入");
        this.position=reader.next();
        System.out.println("请输入教师性别，回车结束输入");
        this.gender=reader.next().charAt(0);
        System.out.println("信息输入完毕！");
        teach();
    }
}
